import { defHttp } from "/@/utils/http/axios";

enum Api {
  list = '/interviewee/list',
  add = '/interviewee/add',
  edit = '/interviewee/edit',
  delete = '/interviewee/delete'
}

/**
 * 用户列表
 * @param params 
 * @returns 
 */
export const list = params => defHttp.get({ url: Api.list, params });

/**
 * 
 * @param params 
 * @param { Boolean } isUpdate 
 * @returns 
 */
export const save = (params, isUpdate) => {
  let url = isUpdate ? Api.edit : Api.add;
  return defHttp.post({ url: url, params });
};


export const deleteIee = (params) => {
  return defHttp.delete({ url: Api.delete, params })
}